#include <iostream>
#include <string>
using namespace std;

class Dog
{

private:
    string name;
    int age;

public:
    Dog(string humansName/*= "C"*/, int humansAge/*= 25*/) // 重载构造方法
    {
        name = humansName;
        age = humansAge;
        cout << "重载构造函数创建";
        cout << name << "==" << age << endl;
    }

    void info()
    {
        cout << name << "==" << age << endl;
    }
};

int main()
{
    // 类Dog的对象
    Dog a=Dog("A",22);
    Dog b = Dog("B", 33);
    //
    a.info();
    b.info();

}